﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace aspZone.Commerce.Model
{
    internal static class UrlNameHelper
    {
        public static string RemoveAllNonAlphaNumeric(this string value)
        {
            return Regex.Replace(value, @"[^\w\s]*", "").Replace("  ", " ").Replace(" ", "_");
        }
    }
}
